package com.qf.smartplatform.service;

import com.qf.smartplatform.pojo.SysDevice;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/*** @author Tgb
 * @version V1.0
 * @Project smartplatform
 * @Package com.qf.smartplatform.service
 * @Description:
 * @Date 2022/9/9 19:40
 */

public interface DeviceService {

    public void addDevice(SysDevice sysDevice);

    SysDevice findById(String deviceId);

    List<SysDevice> findAll();

    void deleteById(String deviceId);

    int update(SysDevice sysDevice);

    void updateDeviceStatus(String deviceId, int status);

    void sendCommand(String deviceId, String command);
}
